<?php

class Theatis {
	public $pektis;
	public $partida;
	public $thesi;

	public function __construct($row = NULL) {
		$this->pektis = NULL;
		$this->partida = NULL;
		$this->thesi = NULL;

		if (isset($row)) {
			if (is_array($row)) {
				$this->pektis = $row['pektis'];
				$this->partida = $row['partida'];
				$this->thesi = $row['thesi'];
			}
			else {
				$row = explode("\t", $row);
				if (count($row) != 3) {
					return;
				}

				$nf = 0;
				$this->pektis = $row[$nf++];
				$this->partida = $row[$nf++];
				$this->thesi = $row[$nf++];
			}
					
		}
	}
}

?>
